package cn.stronglink.netrequest.util;

/**
 * Created by Tgb on 2018/6/20.
 */

public class HttpURL {
    // IP地址
    public static String HOST = "itam.walkhorizon.com:9090/asset";
    // 登陆
    public static  String URL_LOGIN = "http://" + HOST + "/api/terminal/user/login";
    public static  String URL_LOGIN_OUT = "http://" + HOST + "/api/terminal/user/logout";
    // 基础数据
    public static String URL_BASE_DATA = "http://" + HOST + "/api/terminal/basicData";
    // 验收入库
    public static String URL_PRESET_WORK_ORDER = "http://" + HOST + "/api/terminal/presetWorkOrder";
    public static String URL_UPLOAD_PRESET_WORK_ORDER = "http://" + HOST + "/api/terminal/uplocalPresetWorkOrder";
    // 盘点
    public static String URL_INVENTORY_WORK_RODER = "http://" + HOST + "/api/terminal/inventoryWorkOrder";
    public static String URL_UPLOAD_INVENTORY_WORK_ORDER = "http://" + HOST + "/api/terminal/uploadInventoryWorkOrder";
    //巡检
    public static String URL_PATROL_WORK_ORDER = "http://" + HOST + "/api/terminal/patrolWorkOrder";
    public static String URL_UPLOAD_PATROL_WORK_ORDER = "http://" + HOST + "/api/terminal/uploadPatrolWorkOrder";
    // 维修
    public static String URL_REPAIR_WORK_ORDER = "http://" + HOST + "/api/terminal/repairWorkOrder";
    public static String URL_UPLOAD_REPAIR_WORK_ORDER = "http://" + HOST + "/api/terminal/uploadRepairWorkOrder";
    // 资产查找
    public static String URL_ASSET_DATA = "http://" + HOST + "/api/terminal/assetData";
    public static String URL_UPDATE_ASSET_DATA = "http://" + HOST + "/api/terminal/updateAsset";
    public static String URL_QUERY_ASSET_LIST_ONLINE = "http://" + HOST + "/api/terminal/queryAssetListOnline";

    public static String getHost(){
        return HOST;
    }
    public static void setNewHost(String host) {
        // 登陆
        URL_LOGIN = "http://" + host + "/api/terminal/user/login";
         URL_LOGIN_OUT = "http://" + host + "/api/terminal/user/logout";
        // 基础数据
         URL_BASE_DATA = "http://" + host + "/api/terminal/basicData";
        // 验收入库
         URL_PRESET_WORK_ORDER = "http://" + host + "/api/terminal/presetWorkOrder";
         URL_UPLOAD_PRESET_WORK_ORDER = "http://" + host + "/api/terminal/uplocalPresetWorkOrder";
        // 盘点
         URL_INVENTORY_WORK_RODER = "http://" + host + "/api/terminal/inventoryWorkOrder";
         URL_UPLOAD_INVENTORY_WORK_ORDER = "http://" + host + "/api/terminal/uploadInventoryWorkOrder";
        //巡检
         URL_PATROL_WORK_ORDER = "http://" + host + "/api/terminal/patrolWorkOrder";
         URL_UPLOAD_PATROL_WORK_ORDER = "http://" + host + "/api/terminal/uploadPatrolWorkOrder";
        // 维修
         URL_REPAIR_WORK_ORDER = "http://" + host + "/api/terminal/repairWorkOrder";
         URL_UPLOAD_REPAIR_WORK_ORDER = "http://" + host + "/api/terminal/uploadRepairWorkOrder";
        // 资产查找
         URL_ASSET_DATA = "http://" + host + "/api/terminal/assetData";
         URL_UPDATE_ASSET_DATA = "http://" + host + "/api/terminal/updateAsset";
    }
}
